import random
a='abcdefghijklmnopqrstuvwxyz'
list1=[ "".join(random.sample(a,2)) for i in range(100) ]
dict1={ j:list1.count(j) for j in list1 }
sorted(dict1.items(), reverse=True)

# 这样并没有做到按出现次数排序
